package com.icexxx.parasol;

import java.io.Serializable;

import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(prefix = "parasol", ignoreUnknownFields = true)
public class ConfigInformationProperties implements Serializable {
    /**
     * 序列化
     */
    private static final long serialVersionUID = -8196108042046820357L;
    private String title;
    private String description;
    private String termsOfServiceUrl;
    private String name;
    private String url;
    private String email;
    private String license;
    private String licenseUrl;
    private String version;
    private String basePackage;
    private String groupName;
    private String pathSelectors;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getTermsOfServiceUrl() {
        return termsOfServiceUrl;
    }

    public void setTermsOfServiceUrl(String termsOfServiceUrl) {
        this.termsOfServiceUrl = termsOfServiceUrl;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getLicense() {
        return license;
    }

    public void setLicense(String license) {
        this.license = license;
    }

    public String getLicenseUrl() {
        return licenseUrl;
    }

    public void setLicenseUrl(String licenseUrl) {
        this.licenseUrl = licenseUrl;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getBasePackage() {
        return basePackage;
    }

    public void setBasePackage(String basePackage) {
        this.basePackage = basePackage;
    }

    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    public String getPathSelectors() {
        return pathSelectors;
    }

    public void setPathSelectors(String pathSelectors) {
        this.pathSelectors = pathSelectors;
    }

    public void setPathSelectors(IcePathSelectors pathSelectorsEnum) {
        if (pathSelectorsEnum == IcePathSelectors.ANY) {
            this.pathSelectors = "any";
        } else if (pathSelectorsEnum == IcePathSelectors.NONE) {
            this.pathSelectors = "none";
        }
    }
}
